package org.rmm.model;

public class Order {
	
	private String id;
	private String currency;
	private String status;
	private Boolean placed;
	private Customer customer;
	private LineItems items = new LineItems();
	
	
	public String getId() {
		return id;
	}
	public String getCurrency() {
		return currency;
	}
	public String getStatus() {
		return status;
	}
	public Boolean getPlaced() {
		return placed;
	}
	public Customer getCustomer() {
		return customer;
	}
	public LineItems getItems() {
		return items;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setCurrency(String currency) {
		this.currency = currency;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public void setPlaced(Boolean placed) {
		this.placed = placed;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	
	public void addItem (Item item){
		this.items.addItem(item);
	}
	
	public void setItems(LineItems items) {
		this.items = items;
	}
	
	
	@Override
	public String toString() {
		return "Order [id=" + id + ", currency=" + currency + ", status="
				+ status + ", placed=" + placed + ", customer=" + customer
				+ ", items=" + items + "]";
	}

}
